import request from '@/utils/request'

// 查询医院介绍列表
export function listIntro(query) {
  return request({
    url: '/system/intor/list',
    method: 'get',
    params: query
  })
}

// 查询医院介绍详细
export function getIntro(id) {
  return request({
    url: '/system/intor/' + id,
    method: 'get'
  })
}

// 新增医院介绍
export function addIntro(data) {
  return request({
    url: '/system/intor',
    method: 'post',
    data: data
  })
}

// 修改医院介绍
export function updateIntro(data) {
  return request({
    url: '/system/intor',
    method: 'put',
    data: data
  })
}

// 删除医院介绍
export function delIntro(id) {
  return request({
    url: '/system/intor/' + id,
    method: 'delete'
  })
}

// 获取医院名称列表
export function hospitalName() {
  return request({
    url: '/system/intor/system:intor:hospitalName',
    method: 'get'
  })
}
